package com.hongxia.assetsys.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName tb_task_move
 */
@TableName(value ="tb_task_move")
@Data
public class TaskMove implements Serializable {
    /**
     * 
     */
    @TableId
    private Integer id;

    /**
     * 我的任务Id
     */
    private Integer mytaskId;

    /**
     * 
     */
    private String movename;

    /**
     * 
     */
    private String tester;

    /**
     * 
     */
    private Date attacktime;

    /**
     * 
     */
    private String targetip;

    /**
     * 
     */
    private String exploitvuls;

    /**
     * 
     */
    private String movepath;

    /**
     * 
     */
    private String moveresult;

    /**
     * 
     */
    private Date movetime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TaskMove other = (TaskMove) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMytaskId() == null ? other.getMytaskId() == null : this.getMytaskId().equals(other.getMytaskId()))
            && (this.getMovename() == null ? other.getMovename() == null : this.getMovename().equals(other.getMovename()))
            && (this.getTester() == null ? other.getTester() == null : this.getTester().equals(other.getTester()))
            && (this.getAttacktime() == null ? other.getAttacktime() == null : this.getAttacktime().equals(other.getAttacktime()))
            && (this.getTargetip() == null ? other.getTargetip() == null : this.getTargetip().equals(other.getTargetip()))
            && (this.getExploitvuls() == null ? other.getExploitvuls() == null : this.getExploitvuls().equals(other.getExploitvuls()))
            && (this.getMovepath() == null ? other.getMovepath() == null : this.getMovepath().equals(other.getMovepath()))
            && (this.getMoveresult() == null ? other.getMoveresult() == null : this.getMoveresult().equals(other.getMoveresult()))
            && (this.getMovetime() == null ? other.getMovetime() == null : this.getMovetime().equals(other.getMovetime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMytaskId() == null) ? 0 : getMytaskId().hashCode());
        result = prime * result + ((getMovename() == null) ? 0 : getMovename().hashCode());
        result = prime * result + ((getTester() == null) ? 0 : getTester().hashCode());
        result = prime * result + ((getAttacktime() == null) ? 0 : getAttacktime().hashCode());
        result = prime * result + ((getTargetip() == null) ? 0 : getTargetip().hashCode());
        result = prime * result + ((getExploitvuls() == null) ? 0 : getExploitvuls().hashCode());
        result = prime * result + ((getMovepath() == null) ? 0 : getMovepath().hashCode());
        result = prime * result + ((getMoveresult() == null) ? 0 : getMoveresult().hashCode());
        result = prime * result + ((getMovetime() == null) ? 0 : getMovetime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", mytaskId=").append(mytaskId);
        sb.append(", movename=").append(movename);
        sb.append(", tester=").append(tester);
        sb.append(", attacktime=").append(attacktime);
        sb.append(", targetip=").append(targetip);
        sb.append(", exploitvuls=").append(exploitvuls);
        sb.append(", movepath=").append(movepath);
        sb.append(", moveresult=").append(moveresult);
        sb.append(", movetime=").append(movetime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}